#include "debug_addrecord.h"
#include "ui_debug_addrecord.h"
#include "bookstore.h"

using namespace bookstore;

debug_addRecord::debug_addRecord(QWidget *parent) :
    QDialog(parent),
    ui(new Ui::debug_addRecord) {
    ui->setupUi(this);
}

debug_addRecord::~debug_addRecord() {
    delete ui;
}

void debug_addRecord::on_pushButton_clicked() {

    QString str2 = ui->lineEdit_2->text();
    int book_id = str2.toInt();
    QString str3 = ui->lineEdit_3->text();
    int user_id = str3.toInt();


    Record* record = new Record;
    addRecord(user_id, book_id);

    delete record;

}
